---
layout: m1x_soap
title: Store Info
---

<h3><a name="store.info-Module%3AStoreViewAPI"></a>Module: Store View API</h3>

<h4><a name="store.info-Resource%3Astore"></a>Resource: store</h4>

<h5><a name="store.info-Method%3A"></a>Method:</h5>

<ul>
	<li>store.info (SOAP V1)</li>
	<li>storeInfo (SOAP V2)</li>
</ul>


<p>Allows you to retrieve information about the required store view.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> storeId </td>
<td> Store view ID or code (optional) </td>
</tr>
</tbody></table>



<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> array </td>
<td> result </td>
<td> Array of storeEntity </td>
</tr>
</tbody></table>


<p>The <b>storeEntity</b> content is as follows:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> int </td>
<td> store_id <br class="atl-forced-newline" /> </td>
<td> Store view ID </td>
</tr>
<tr>
<td> string </td>
<td> code <br class="atl-forced-newline" /> </td>
<td> Store view code </td>
</tr>
<tr>
<td> int </td>
<td> website_id <br class="atl-forced-newline" /> </td>
<td> Website ID </td>
</tr>
<tr>
<td> int </td>
<td> group_id <br class="atl-forced-newline" /> </td>
<td> Group ID </td>
</tr>
<tr>
<td> string </td>
<td> name <br class="atl-forced-newline" /> </td>
<td> Store name </td>
</tr>
<tr>
<td> int </td>
<td> sort_order <br class="atl-forced-newline" /> </td>
<td> Store view sort order </td>
</tr>
<tr>
<td> int </td>
<td> is_active <br class="atl-forced-newline" /> </td>
<td> Defines whether the store is active </td>
</tr>
</tbody></table>



<p><b>Faults:</b></p>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 101 </td>
<td> Requested store view not found. </td>
</tr>
</tbody></table>


<h4><a name="store.info-Examples"></a>Examples</h4>

<h5><a name="store.info-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$client = new SoapClient('http://magentohost/api/soap/?wsdl');

// If somestuff requires api authentification,
// then get a session token
$session = $client-&gt;login('apiUser', 'apiKey');

$result = $client-&gt;call($session, 'store.info', '2');
var_dump ($result);</pre>
		</div>
</div></div>

<h5><a name="store.info-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;storeInfo($sessionId, '2');
var_dump($result);</pre>
		</div>
</div></div>



<h5><a name="store.info-RequestExampleSOAPV2"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); 

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey')); 
 
$result = $proxy-&gt;storeInfo((object)array('sessionId' =&gt; $sessionId-&gt;result, 'storeId' =&gt; '2'));   

var_dump($result-&gt;result);</pre>
		</div>
</div></div>



<h5><a name="store.info-ResponseExampleSOAPV1"></a>Response Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">array
  'store_id' =&gt; string '2' (length=1)
  'code' =&gt; string 'english' (length=7)
  'website_id' =&gt; string '2' (length=1)
  'group_id' =&gt; string '2' (length=1)
  'name' =&gt; string 'English' (length=7)
  'sort_order' =&gt; string '0' (length=1)
  'is_active' =&gt; string '1' (length=1)</pre>
		</div>
</div></div>

<?php include(__ROOT__ . 'footer.php'); ?>
